import { defineConfig } from 'vite'
import { baseConfig } from '../../vite.config'
import {resolve} from 'path'

const pathResolve = (dir: string): string => resolve(__dirname, dir)

export default defineConfig({
  ...baseConfig,
  resolve: {
    alias: {
      '@': pathResolve('./src'),
    }
  },
  server: {
    port: 3002
  },
    // 以下这样配置，可以更改打包后文件的目录，静态文件目录，入口文件名称
  /* base: '50001001',
  build: {
    assetsDir: '50001001',
    rollupOptions: {
      input: '50101001.html'
    }
  }, */
})
